package 进阶.IO.字节流.输入输出复制;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

public class demo01 {
    public static void main(String[] args) throws IOException {


        FileInputStream fis = new FileInputStream("d:/a.txt");
        FileOutputStream fos = new FileOutputStream("d:/b.txt");
        byte[] bytes = new byte[1024];
        int len = 0;
        while ((len = fis.read(bytes)) != -1){
           fos.write(bytes,0,len);
        }
        fos.close();
        fis.close();


    }
}
